﻿
@{
    Layout = "~/Areas/Admin/Views/Shared/_form_layout.cshtml";
    OA.Model.CustomForm infoCustomForm = ViewBag.CustomForm;
}
<script type="text/javascript" src="~/Content/layuiadmin/layui/layui-xtree/layui-xtree.js"></script>
<div class="fly-panel fly-panel-user" pad20="">
    <div class="layui-tab layui-tab-brief" lay-filter="user">
        <div class="layui-form layui-tab-content" id="LAY_ucm" style="padding:20px 40px 20px 0;">
            @using (Html.BeginForm(FormMethod.Post, htmlAttributes: new { @class = "layui-form", id = "myForm" }))
            {
                <div class="layui-form-item">
                    <label class="layui-form-label" for="Title">组织图</label>
                    <div class="layui-input-block">
                        <div id="xtree1" class="xtree_contianer"></div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label" for="Title"></label>
                    <div class="layui-input-block">
                        <input type="hidden" name="id" value="@infoCustomForm.ID" />
                        <input type="submit" value="提 交" class="layui-btn mySubmit" />
                    </div>
                </div>
            }
        </div>
    </div>
</div>
<script type="text/javascript">

layui.use(['form', 'layedit', 'element', 'layer'], function () {
    form = layui.form;
    layer = layui.layer;
    element = layui.element;
    var xtree1 = new layuiXtree({
        elem: 'xtree1'
        ,name:'employees'
        , form: form
        , data: '/Home/GetEmployeeCustomFormTree/@infoCustomForm.ID'
    });
});
</script>
